package tw.rescue.dao;

import tw.rescue.model.slim3.model.Account;

public interface AccountDao<K> {

	/*
	 * 我認為admin和user並無不同...
	 */
	
	/*
	 *DAO是否需要採用singleton 
	 */
	
	void createUser(Account account) throws Exception;
	
	/*
	 * getUser需什麼樣的參數?
	 */
	Account getUser() throws Exception;
	
	void modifyUser(Account account) throws Exception;
	
	void deleteUser(Account account) throws Exception;
	
	void createAdmin(Account account) throws Exception;
	
	void modifyAdmin(Account account) throws Exception;
	
	Account getAdmin() throws Exception;
	
	void deleteAdmin(Account account) throws Exception;
}
